﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using iLangl.Transport;
using System.IO;
using iLangl.Transport.Communication;
using iLangl.BusinessModel.Actions.Push;
using iLangl.BusinessModel.Managers;

namespace iLangl.Tests.TPActions
{
	[TestClass]
	public class SyncSettingsTPTest : BaseTest
	{

		[TestMethod]
		public void SyncTMSettings()
		{
			SwitchToILanglSideForTP();

			SyncTranslationProviderSettings syncSettings = new SyncTranslationProviderSettings();
			//Languagewire CompanyId 
			ActionManager.Instance.PrepareAction(TestSettings.LanguageWireCompanyId, syncSettings);
			
			syncSettings.Send();

			syncSettings.Execute();

			Assert.IsNotNull(syncSettings.Settings);

			Assert.IsTrue(syncSettings.Settings.Products.Count > 0);
		}
	}
}
